package com.yunchuang.common;

import com.yunchuang.constant.CommonConstant;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 基本返回封装类
 *
 * @author ItJiange
 * @date 2023/10/26
 */
@Data
@NoArgsConstructor
public class BaseResult<T> {
    private int code;
    private String message;
    private T data;
    public BaseResult(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public BaseResult(String message, T data) {
        this.message = message;
        this.data = data;
    }

    public BaseResult(int code, String message, T data) {
        this.code = code;
        this.message = message;
        this.data = data;
    }
}
